<script setup lang="ts">
  import { toRefs } from 'vue'
import {useRoute} from 'vue-router'
  const route = useRoute()
  console.log(route.query)
  let {params} = toRefs(route)

</script>

<template>
    <div>
        <ul>
            <li>新闻id:{{ params.id }}</li>
            <li>新闻title:{{ params.title }}</li>
            <li>新闻content:{{ params.content }}</li>
        </ul>
    </div>
</template>

<style scoped>
  /*css样式 */
</style>